package com.lst.tools.redis.properties;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: Frank
 * @date: 2019/09/24 13:51
 * @version: V1.0
 */
@Data
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "redis.sentinel")
public class RedisSentinelProperties {
    /**
     * 哨兵监听的Redis server的名称
     */
    private String master;
    /**
     * 密码
     */
    private String password;
    /**
     * 哪个数据库
     */
    private int database;
    /**
     * 连接超时时间（毫秒）
     */
    private int timeout;
    private String nodes;
}
